cmake_minimum_required(VERSION 3.5)
project(Demo3)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

include_directories(
    include
    include/MinPack
    include/Tools
    src
)

aux_source_directory(src DIR_SRC)
aux_source_directory(include DIR_INCLUDE)
aux_source_directory(include/MinPack DIR_INCLUDE_MinPack)
aux_source_directory(include/Tools DIR_INCLUDE_Tools)

add_executable(Demo ${DIR_SRC} ${DIR_INCLUDE} ${DIR_INCLUDE_MinPack} ${DIR_INCLUDE_Tools})